package com.blog.admin.service;


import java.util.List;

import com.blog.admin.pojo.auth.Permission;
import com.blog.admin.pojo.auth.User;

public interface PermissionService {
	/**
	 * 查询所有权限
	 */
    List<Permission> selectAll();
    
    /**
	 * 根据用户获取权限
	 */
    List<Permission> selectMenusByUser(User user);
    
    /**
	 * 删除权限
	 */
	boolean deletePermission(String id);

	/**
	 * 查询权限
	 * @param id
	 * @return
	 */
	Permission getPermissionById(Integer id);

	Integer update(Permission permission);

	Integer insert(Permission permission);
}
